﻿<Window x:Class="GestureLibDemo.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="GestureLibDemo" Height="592.163" Width="757.702" Loaded="Window_Loaded">
    
    <Window.Resources>
        <DataTemplate x:Key="AccelerationTemplate">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="{Binding Path=X}" Margin="5"></TextBlock>
                <TextBlock Text="{Binding Path=Y}" Margin="5"></TextBlock>
                <TextBlock Text="{Binding Path=Z}" Margin="5"></TextBlock>
            </StackPanel>
        </DataTemplate>
        
        <DataTemplate x:Key="PointerTemplate">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="{Binding Path=X}" Margin="5"></TextBlock>
                <TextBlock Text="{Binding Path=Y}" Margin="5"></TextBlock>
            </StackPanel>
        </DataTemplate>
        
        <PathGeometry x:Key="AnimationPath" Figures="M 100,100 V 20 V -20 V 20 V-20 Z" />
        
        <Storyboard x:Key="ShakeTopDown" RepeatBehavior="Forever">
            <DoubleAnimationUsingPath 
                Storyboard.TargetName="AnimatedTranslateTransform"
                Storyboard.TargetProperty="X"
                PathGeometry="{StaticResource AnimationPath}"
                Source="Y"
                Duration="00:00:05" />
        </Storyboard>
    </Window.Resources>
    
    <Grid>
        <ListBox HorizontalAlignment="Left" Margin="31,88,0,42.218" Name="lbPointerGestureStates" ItemTemplate="{StaticResource PointerTemplate}" Width="159" />
        <ListBox Margin="203,88,0,42.218" Name="lbAccelerationGestureStates" ItemTemplate="{StaticResource AccelerationTemplate}" HorizontalAlignment="Left" Width="189.038" />

        <Label Height="24" HorizontalAlignment="Left" Margin="31,64,0,0" Name="label1" VerticalAlignment="Top" Width="117">Pointer:</Label>
        <Label Height="24" Margin="203,64,0,0" Name="label2" VerticalAlignment="Top" HorizontalAlignment="Left" Width="83">Acceleration:</Label>
        <Label HorizontalAlignment="Left" Margin="31,0,0,7.5" Name="lblPointerCount" Width="120" Height="28.25" VerticalAlignment="Bottom">Anzahl: 0</Label>
        <Label Margin="203,0,0,7.5" Name="lblAccelerationCount" HorizontalAlignment="Left" Width="120" Height="28.25" VerticalAlignment="Bottom">Anzahl: 0</Label>
        <Button Height="23" Margin="408,24,0,0" Name="btnSimulate" VerticalAlignment="Top" Click="btnSimulate_Click" IsEnabled="False" HorizontalAlignment="Left" Width="75">Simulate</Button>
        <Canvas Margin="408,88,8,355.25" Name="cvsPath" Background="GhostWhite" />
        <ListBox Height="66.25" Margin="408,0,8,247.5" Name="lbMatchedAlgorithms" VerticalAlignment="Bottom" />
        <Button Margin="307,0,0,12.5" Name="btnCopyAccelerationGestureStates" Click="btnCopyAccelerationGestureStates_Click" Height="23.25" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="85.038">Copy CSV</Button>
        <Button HorizontalAlignment="Left" Margin="114,0,0,12.5" Name="btnCopyPointerGestureStates" Width="76" Click="btnCopyPointerGestureStates_Click" Height="23.25" VerticalAlignment="Bottom">Copy CSV</Button>
        <Label Height="28" HorizontalAlignment="Left" Margin="28,19,0,0" Name="label3" VerticalAlignment="Top" Width="80">Used Device:</Label>
        <Label Height="28" Margin="114,19,0,0" Name="lblUsedDevice" VerticalAlignment="Top" HorizontalAlignment="Left" Width="269">Label</Label>
        <Label Margin="408.25,0,0,313.75" Name="label4" Height="28.25" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="140.5">AccelerationAlgorithms:</Label>
        <Label Height="28.25" Margin="408.25,0,0,207.5" Name="label5" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="140.5">PointerAlgorithms:</Label>
        <ListBox Margin="408,0,8,12.5" Name="lbMatchedPointerAlgorithms" Height="198.75" VerticalAlignment="Bottom" />
    </Grid>
</Window>
